const emailPattern = /^([a-zA-Z0-9._-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/

const mobilePattern = /^1[3|4|5|7|8|9][0-9]{9}$/

const phonePattern = /^([0-9]{3,4}-)?[0-9]{7,8}$/

const zhognwenPattern = /^[\u4e00-\u9fa5|\s]{0,}$/

const yingwenPattern = /^[A-Za-z|\s]+$/

const baifenshuPattren = /^(100|[1-9]?\d(\.\d\d?\d?)?)%$|0$/

const urlPattern = /^http[s]?:\/\/.*/

// 匹配非负浮点数（正浮点数 + 0）
const numberPattern = /^[+-]?(0|([1-9]\d*))(\.\d+)?$/


export {
    emailPattern,
    mobilePattern,
    phonePattern,
    urlPattern,
    numberPattern,
    zhognwenPattern,
    yingwenPattern,
    baifenshuPattren
}
